package com.danciyixue.boot.dcyx.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 单词信息表单对象
 *
 * @author youlaitech
 * @since 2025-06-15 16:23
 */
@Getter
@Setter
@Schema(description = "单词信息表单对象")
public class WordsForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "单词ID")
    private Long id;

    @Schema(description = "拼写")
    @NotBlank(message = "拼写不能为空")
    @Size(max=128, message="拼写长度不能超过128个字符")
    private String spelling;

    @Schema(description = "音节")
    @NotBlank(message = "音节不能为空")
    @Size(max=64, message="音节长度不能超过64个字符")
    private String syllable;

    @Schema(description = "中文释义")
    @NotBlank(message = "中文释义不能为空")
    @Size(max=65535, message="中文释义长度不能超过65535个字符")
    private String meaningZhCn;

    @Schema(description = "英文例句")
    @Size(max=65535, message="英文例句长度不能超过65535个字符")
    private String exampleEnUs;

    @Schema(description = "中文例句")
    @Size(max=65535, message="中文例句长度不能超过65535个字符")
    private String exampleZhCn;

    @Schema(description = "所属单元")
    @Size(max=128, message="所属单元长度不能超过128个字符")
    private String unitName;

    @Schema(description = "所属教材ID")
    private Long programId;

    @Schema(description = "所属系列ID")
    private Long seriesId;

    @Schema(description = "所属单元ID")
    @NotNull(message = "所属单元ID不能为空")
    private Long unitId;

    @Schema(description = "状态")
    private Integer status;


}
